package com.hjh.java.springboot.aspect.service.impl;

import com.hjh.java.springboot.aspect.bean.dto.UserDto;
import com.hjh.java.springboot.aspect.service.IUserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {
    @Override
    public UserDto queryUser(String orderid) {
        UserDto dto = new UserDto();
        if ("1".equals(orderid)) {
            dto.setUserName("name1");

        } else if ("2".equals(orderid)) {
            dto.setUserName("name2");
        } else {
            dto.setUserName("name3");
        }
        dto.setPasswd("pwd");

        return dto;
    }
}
